package pers.duorhs.easierfeign.iface;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Duorhs
 * @date 2022/1/11 8:41
 */
public interface GeneralRemoteClient {
    /**
     * client统一接口
     *
     * @param serviceName 服务类名
     * @param methodName  方法名
     * @param args        参数
     * @return 方法调用返回值(JSON)
     */
    @PostMapping("{service}/{method}")
    String remoteInvoke(@PathVariable("service") String serviceName, @PathVariable("method") String methodName, @RequestBody String args);
}
